//
//  OneUserCell.m
//  BeautyClother
//
//  Created by dllo on 15/10/6.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "OneUserCell.h"

@implementation OneUserCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
        
        self.tagList = [[UIButton alloc] init];
        [self.contentView addSubview:_tagList];
        [_tagList release];
        
        self.addtime = [[UIButton alloc] init];
        [self.contentView addSubview:_addtime];
        [_addtime release];
        
        
    }
    return  self;
}

- (void)dealloc
{
    [_title release];
    [_tagList release];
    [_addtime release];
    [super dealloc];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat offwidth = [UIScreen mainScreen].bounds.size.width / 375;
    CGFloat offheight = [UIScreen mainScreen].bounds.size.height / 667;
    
    self.title.frame = CGRectMake(5, 5, self.contentView.frame.size.width - 10, self.contentView.frame.size.height - 60 * offheight);
    
    self.addtime.frame = CGRectMake(0, self.title.frame.size.height + self.title.frame.origin.y + 10 * offheight, 210 * offwidth, 40 * offheight);
    self.addtime.titleLabel.textAlignment = NSTextAlignmentLeft;
    
    self.tagList.frame = CGRectMake(270 * offwidth, self.title.frame.size.height + self.title.frame.origin.y + 10 * offheight, 100 * offwidth, 40 * offheight);
    self.tagList.titleLabel.font = [UIFont systemFontOfSize:12];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
